//
//  ProjectWithArrowButton.m
//  ppkc2016
//
//  Created by 拼凑的断音 on 16/3/30.
//  Copyright © 2016年 拼凑的断音. All rights reserved.
//

#import "ProjectWithArrowButton.h"
#import "XXTool.h"

@implementation ProjectWithArrowButton

-(instancetype)init
{
    self =[super init];
    if(self)
    {
        self.layer.cornerRadius = 10;
        self.layer.borderWidth = 1;
        self.layer.borderColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:0.3].CGColor;
        [self setColor:[UIColor clearColor] ForState:DKButtonStateNormal];
        [self setColor:[UIColor colorWithRed:255/255.0 green:255.0/255.0 blue:255/255.0 alpha:0.3] ForState:DKButtonStatePressed];
        [self setAccessoryView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"箭头"]]];
        [self setAccessorySize:CGSizeMake(8, 15)];
        [self setAccessoryRightGap:20];
        [self setTextColor:[UIColor whiteColor]];
        [self setImagePosition:DKButtonImagePositionAtEnd];
        [self setFont:[XXTool systemFontOfSize:19]];
    }
    return self;
}

-(void)setButtonWithText:(NSString *)text
{
    self.text = text;
}

@end
